<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>学生个人成绩查询</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css" href="css/student.css">

</head>

<body>

	<jsp:include page="head.jsp"></jsp:include>
	<div>
		<div id="left">
			<ul>
				<li>
					<h2>
						<a href="<%=basePath%>message.action?id=<s:property value="#session['u']" />" >查看个人信息</a>
					</h2>
				</li>
				<li>
					<h2>
						<a href="<%=basePath%>getMessage.action?id=<s:property value="#session['u']" />" >修改个人信息</a>
					</h2>
				</li>
				<li>
					<h2>
						<a href="<%=basePath%>studScore.action?id=<s:property value="#session['u']" />">查看个人成绩</a>
					</h2>
				</li>
				<li>
					<h2>
						<a href="<%=basePath%>stu_change_password.jsp" />修改密码</a>
					</h2>
				</li>
			</ul>
		</div>
		<div id="main">
			<h4>当前位置 ****** 成绩查询</h4>
			<!-- 学生个人成绩查询 -->
			<form action="getScore.action" method="post">
			    <input type="hidden"  name="id" value="<s:property value="#session['u']" />"/>
				<font color="#1a1afa">学年</font> <select name="academic_year">
					<option value="any">-不限-</option>
					<option value="2010-2011">2010-2011</option>
					<option value="2011-2012">2011-2012</option>
					<option value="2012-2013">2012-2013</option>
					<option value="2013-2014">2013-2014</option>
					<option value="2014-2015">2014-2015</option>

				</select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#1a1afa">学期</font>
				 <select name="term">
					<option value="any">-不限-</option>
					<option value="1">1</option>
					<option value="2">2</option>
				</select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="submit" value="查  询 " class="button" />
				 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <%--<input type="submit" value="成绩统计 " class="sub" />
			--%></form>

			<s:if test="#request['s']!=null">
				<%--<table border="1" cellspacing="0" bordercolor="#000" width="800px" height="200px">
					--%>
					<table border="1" class="gridtable">
					    <tr>
					    <td>学年</td>
					    <td>学期</td>
					    <td>课程代码</td>
					    <td>课程名称</td>
					    <td>课程性质</td>
					    <td>课程归属</td>
					 
						<td>平时成绩</td>
						<td>期末成绩</td>
						<td>总成绩</td>
						<td>任课老师</td>
						<td>开课学院</td>
					</tr>
					<s:iterator value="#request['s']" id="score">
						<tr>
						    <td><s:property value="#score.academicYear" />
							</td>
							<td><s:property value="#score.term" />
							</td>
							<td><s:property value="#score.course.CId" />
							</td>
							<td><s:property value="#score.course.CName" />
							</td>
							<td><s:property value="#score.course.property" />
							</td>
							<td><s:property value="#score.course.belong" />
							</td>
							<td><s:property value="#score.UGrade" />
							</td>
							<td><s:property value="#score.FGrade" />
							</td>
							<td><s:property value="#score.grade" />
							</td>
							<td><s:property value="#score.teacher.name" />
							</td>
							<td><s:property value="#score.course.academy.AName" />
							</td>
						</tr>
					</s:iterator>
				</table>
			</s:if>
		</div>
	<hr width=100% size=5 color=#2323fe style="FILTER: alpha(opacity=100,finishopacity=0,style=3)">


</div>
</body>
</html>
